package com.bmf.admin.module.scenario.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bmf.admin.utils.ITree;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 流程(ScenarioFlow)表实体类
 *
 * @author aries
 * @since 2024-07-31 10:45:47
 */
@Data
@TableName("scenario_flow")
public class ScenarioFlow extends BaseAuditable implements Serializable, ITree<ScenarioFlow,String> {
    @Schema(description = "所属想定id")
    private String scenarioId;

    @Schema(description = "阶段id")
    private String sectionId;

    @Schema(description = "流程名")
    private String flowName;

    @Schema(description = "上级流程id")
    private String parentId;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "流程完成所需时间")
    private Long duration;

    @TableField(exist = false)
    private List<ScenarioFlow> children;

//    private FlowComponents components;
}

